import request from '@/utils/request'

export function listgoodInfo(query) {
  return request({
    url: '/material/goodInfo/list',
    method: 'get',
    params: query
  })
}

export function listgoodInfo2(query) {
  return request({
    url: '/material/goodInfo/list2',
    method: 'get',
    params: query
  })
}


export function creategoodInfo(data) {
  return request({
    url: '/material/goodInfo/create',
    method: 'post',
    data
  })
}

export function readgoodInfo(data) {
  return request({
    url: '/material/goodInfo/get/' + data.id,
    method: 'get'
  })
}

export function updategoodInfo(data) {
  return request({
    url: '/material/goodInfo/update',
    method: 'post',
    data
  })
}

export function deletegoodInfo(data) {
  return request({
    url: '/material/goodInfo/delete?' + 'fgoodno='+ data.fgoodno +'&fsiteNo=' + data.fsiteNo,
    method: 'get'
  })
}
